package cn.edu.csust.tysp.backend.controller;

import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: ScoreRecordController
 * @Author: XijiaoZheng
 * @E-mail: 2516299639@qq.com
 * @Date: 2021/5/9 15:41
 * @Version: V1.0
 * @Description: 对该类的描述
 */

@RestController
public class ScoreRecordController {


    /*
     *查找乐谱
     * @return
     * @throws
     */
    //@GetMapping("/play")
    //public JSONObject addScore(String audioURL) {
    //
    //}

    /*
     * 演奏打分
     * @return
     * @throws
     */
    //@PutMapping("/play")
    //public JSONObject addScore(String audioURL) {

        //if(audioURL)
        //StaffEvaluation staffEvaluation = JSONObject.parseObject(evaluationMessageJson.toJSONString(), StaffEvaluation.class);
        //if (id==null||"".equals(JSONObject.toJSONString(staffEvaluation)) || staffEvaluation.getId() == null) {
        //    return Message.fail(628, "请求格式错误").toJsonObject();
        //}
        //if(userService.isTrue(staffEvaluation.getStaffId(),id)){
        //    StaffEvaluation staffEvaluation1 = userService.updateStaff_evaluation(staffEvaluation);
        //    String staff_eva = JSONObject.toJSONString(staffEvaluation1);
        //    if (staff_eva.equals("")) {
        //        return Message.fail().toJsonObject();
        //    } else {
        //        return Message.success().add("staffEvaluation", staff_eva).toJsonObject();
        //    }
        //}else{
        //    return Message.fail(628,"没有权限").toJsonObject();
        //}

    //}
}
